<ul class="tabs">
	<li><a href="#tab1">Details</a></li>
	<li><a href="#tab2">Password</a></li>
</ul>
<div class="tab_container">
	<div id="tab1" class="tab_content">
		<div class="login">
			<?php if (validation_errors()): ?>
			<div class="error-box">
				<?php echo validation_errors();?>
			</div>
			<?php endif; ?>
		
			<?php if($this->session->flashdata('error')): ?>
			<div class="error-box">
				<?php echo $this->session->flashdata('error'); ?>
			</div>
			<?php endif; ?>
			
			<?php if($this->session->flashdata('success')): ?>
			<div class="success-box">
				<?php echo $this->session->flashdata('success'); ?>
			</div>
			<?php endif; ?>
		
			<form action="<?php echo site_url('users/create'); ?>" method="post">
				<label for="firstname"><?php echo lang('user_firstname_label'); ?></label>
				<input name="firstname" id="firstname" type="text" size="50" maxlength="60" value="<?php echo set_value('firstname'); ?>" class="styled" />
				<br/>
				<label for="lastname"><?php echo lang('user_lastname_label'); ?></label>
				<input name="lastname" id="firstname" type="text" size="50" maxlength="60" value="<?php echo set_value('lastname'); ?>" class="styled" />
				<br/>
				<label for="email"><?php echo lang('user_email_label'); ?></label>
				<input name="email" id="email" type="text" size="50" maxlength="60" value="<?php echo set_value('email'); ?>" class="styled" />
				<br/>
				<label for="username"><?php echo lang('user_username_label'); ?></label>
				<input name="username" id="username" type="text" size="50" maxlength="60" value="<?php echo set_value('username'); ?>" class="styled" />
				<br/>
				<label for="display_name"><?php echo lang('user_display_name_label'); ?></label>
				<input name="display_name" id="email" type="text" size="50" maxlength="60" value="<?php echo set_value('display_name'); ?>" class="styled" />
				<br/>
				<label for="is_active"><?php echo lang('user_is_active'); ?></label>
				<input name="is_active" type="checkbox" id="is_active" value="<?php echo set_value('is_active', '1'); ?>" class="styled" />
				<br/>
				<label for="roles"><?php echo lang('user_role_select_label'); ?></label>
				<?php echo form_dropdown('role', $roles, '0'); ?>
				<br/>
				<fieldset id="action">
				<a href="#" class="btn btn-save"><span class="btn-icon disk-icon"></span><?php echo lang('admin_button_save'); ?></a>
				</fieldset>
		</div>
	</div>
	<div id="tab2" class="tab_content">
	   <div class="">
				<label for="password"><?php echo lang('user_password_label'); ?></label>
				<input name="password" id="password" type="password" size="50" maxlength="60" value="" class="styled" />
				<br/>
				<label for="confirm_password"><?php echo lang('user_confirm_password_label'); ?></label>
				<input name="confirm_password" id="confirm_password" type="password" size="50" maxlength="60" value="" class="styled" />
				<br/>
				<fieldset id="action">
				<a href="#" class="btn btn-save"><span class="btn-icon disk-icon"></span><?php echo lang('admin_button_save'); ?></a>
				</fieldset>
	   </div>
	</div>
</div>
<script>
$(document).ready(function(){
	$('.btn-save').click(function(){
		$('form').submit();
		return false;
	});
	$.facebox.settings.closeImage = '<?php echo image_path('facebox/closelabel.png'); ?>';
	$('.btn-modal').click(function(){
		$.facebox({
			ajax		 : $(this).attr('href')
		});
		return false;
	});
});
</script>